
To run the code, use the file "primary_rep.r"
Inside this file, change "dir1 <- "?"" to the directory where the files are located.
The code will generate the pdf file "design.pdf" and the latex file "tables.tex".
Note that due to the dll file, the code will only run in a 64-bit windows operating system.

The following data files are included:

primary.Rda -- the individual level data
adcounts.xlsx -- data on ads
dma_codes.xlsx -- data on media markets
state_primaries.xlsx -- state primary dates
list_of_states_in_each_dma.xlsx -- list of states overlapping each media market

The following output is included:

log.txt -- a log file from when the results were generated
design.pdf -- the pdf figure generated by "primary_rep.r"
tables.tex -- the latex code for the tables generated by "primary_rep.r"

The following file is included:

fastr.dll -- a dll file of compiled c++ code



